package com.neusoft.carsale.service;

import java.util.List;

import com.neusoft.carsale.bean.Pager;
import com.neusoft.carsale.bean.PssException;

/**
 * 
 * @author hp
 *
 */
public interface SuperService<T> {
	/**
	 * 列表
	 * @param pager
	 * @return
	 * @throws PssException
	 */
	public List<T> findList(Pager<T> pager) throws PssException;
	/**
	 * 总数
	 * @param pager
	 * @return
	 * @throws PssException
	 */
	public int findTotal(Pager<T> pager)throws PssException;
	/**
	 * 查所有
	 * @return
	 * @throws PssException
	 */
	public List<T> findAll()throws PssException;
	/**
	 * 添加
	 * @param param
	 * @return
	 * @throws PssException
	 */
	public boolean add(T param)throws PssException;
	/**
	 * 修改
	 * @param param
	 * @return
	 * @throws PssException
	 */
	public boolean edit(T param)throws PssException;
	/**
	 * 删除
	 * @param param
	 * @return
	 * @throws PssException
	 */
	public boolean delete(T param)throws PssException;
}

